import request from '@/utils/request'

// 查询酒店订单模块列表
export function listHotelOrders(query) {
  return request({
    url: '/system/hotelOrders/list',
    method: 'get',
    params: query
  })
}

// 查询酒店订单模块详细
export function getHotelOrders(hotelOrderid) {
  return request({
    url: '/system/hotelOrders/' + hotelOrderid,
    method: 'get'
  })
}

// 新增酒店订单模块
export function addHotelOrders(data) {
  return request({
    url: '/system/hotelOrders',
    method: 'post',
    data: data
  })
}

// 修改酒店订单模块
export function updateHotelOrders(data) {
  return request({
    url: '/system/hotelOrders',
    method: 'put',
    data: data
  })
}

// 删除酒店订单模块
export function delHotelOrders(hotelOrderid) {
  return request({
    url: '/system/hotelOrders/' + hotelOrderid,
    method: 'delete'
  })
}
